class GameDataItem {
  late String id;
  late String org;
  late String name;
  late String cover;

  GameDataItem(Map<String, dynamic> json) {
    id = "${json["id"]}";
    org = "${json["org"]}";
    name = "${json["name"]}";
    cover = "${json["cover"]}";
  }

  Map<String, dynamic> get json {
    return Map<String, dynamic>()
      ..["id"] = id
      ..["org"] = org
      ..["name"] = name
      ..["cover"] = cover;
  }
}

class GameHomeDataItem {
  late List<GameDataItem> country;
  late List<GameDataItem> game;

  GameHomeDataItem(Map<String, dynamic> json) {
    country =
        (json["country"] as List<dynamic>).map((e) => GameDataItem(e)).toList();
    game = (json["game"] as List<dynamic>).map((e) => GameDataItem(e)).toList();
  }
}

class GameDetail {
  late String id;
  late String discipline_name;
  late String discipline;
  late String detail;
  late String title;
  late String cover;
  late String background;
  late String path;

  GameDetail(Map<String, dynamic> json) {
    id = "${json["id"]}";
    discipline_name = "${json["discipline_name"]}";
    discipline = "${json["discipline"]}";
    detail = "${json["detail"]}";
    title = "${json["title"]}";
    cover = "${json["cover"]}";
    background = "${json["background"]}";
    path = "${json["path"]}";
  }

  Map<String, dynamic> get json {
    return Map<String, dynamic>()
      ..["id"] = id
      ..["discipline_name"] = discipline_name
      ..["discipline"] = discipline
      ..["detail"] = detail
      ..["title"] = title
      ..["cover"] = cover
      ..["background"] = background
      ..["path"] = path;
  }
}
